// 字面量
var o1 = {name: 'o1'};
var o2 = Object({name: 'o2'});
console.log(o1, o2);

//通过构造函数
var Person = function () {
  this.name = "james"
};


var p2 = new Person();
console.log(p2);
console.log(Person.__proto__ ===Function.prototype);
console.log(Function.prototype.__proto__ ===Object.prototype);
// object.create
var p = {name: "wade"};
var p3 = Object.create(p);

console.log( p3.__proto__ === p);
